package club.westudy.distributed.lock;

import club.westudy.distributed.lock.annotation.DistributedLock;
import club.westudy.distributed.lock.domains.CreateOrderRequest;
import club.westudy.distributed.lock.domains.CreateOrderResponse;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl implements IOrderService{
    @DistributedLock(feature = "${arg1.orderNo} + '___' + ${arg1.count}")
    public CreateOrderResponse create(CreateOrderRequest request) {
        System.out.println("------------------------");
        return null;
    }
}
